<?php

use Illuminate\Database\Seeder;
use App\User;

class AddAdminSeeder extends Seeder
{
    public function run(){
        User::firstOrCreate([
            'username'   => 'admin',
            'password'   => bcrypt('rz@20180101'),
            'reg_ip'     => '127.1.1.0',
            'reg_time'   => \Carbon\Carbon::now(),
            'role'       => 3,
            'status'     => 1
        ]);
    }
}